package com.novax.ex.activity.provider.api;

import com.novax.ex.activity.provider.api.model.DrawUserTotalResponse;
import com.novax.ex.activity.provider.common.ServerName;
import com.novax.ex.common.results.ReturnResult;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Description: 活动相关查询
 *
 * @author my.miao
 * @date 2022/4/20 14:19
 */
@FeignClient(url = "${remote.spot-service.endpoint}", name = "ActivityQueryApi", contextId = "ActivityQueryApi")
public interface ActivityQueryApi {

    @Operation(summary = "盲盒活动获取用户充值、现货、合约交易量")
    @GetMapping("/activity/condition/draw")
    ReturnResult<List<DrawUserTotalResponse>> drawTotal(@RequestParam("type") Integer type,
                                                        @RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime,
                                                        @RequestParam("newDate") String newDate, @RequestParam("date") String date);


}
